package com.daxt.model.dic;


/**
 * @description: 用户分类   数据权限使用
 *
 * @author: lig
 * @date: 2021/6/10
 */
public enum UserClassifyType {

	LEVEL_1(0,"全宗"), //
	LEVEL_2(1,"门类"), //
	LEVEL_3(2,"类目"),
	LEVEL_4(3,"字段");

	private int key;
	private String value;

	private UserClassifyType(int key, String value) {
		this.key = key;
		this.value = value;
	}
	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	

	public static boolean hasKey(String key) {
		UserClassifyType[] values = UserClassifyType.values();
		for (UserClassifyType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
